* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

#header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  background-color: #f9f9f9;
  padding: 0 10vw;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

#header .left {
  height: 100%;
  width: 80px;
  background: url(/assets/logo.png) center/contain no-repeat;
}

#header .right-wrapper {
  display: flex;
  align-items: center;
}

#header .right {
  display: flex;
  line-height: 80px;
}

#header .right li {
  padding: 0 1.2vw;
  cursor: pointer;
  position: relative;
}

#header .right li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: #aaa;
  transition: all 0.8s;
}

#header .right li:hover::after {
  width: 100%;
}

#header .header-btn {
  width: 50px;
  height: 35px;
  background: url(/assets/btn.png) center/cover no-repeat;
  border: none;
  cursor: pointer;
  display: none;
}

#slideshow-wrapper {
  width: 100%;
  overflow: hidden;
}

#slideshow {
  width: 300vw;
  height: 550px;
  display: flex;
  margin-top: 80px;
}

#slideshow img {
  display: block;
  height: 100%;
  width: 100vw;
  object-fit: cover;
}

#main {
  width: 80%;
  margin: 40px auto;
}

#main .title {
  text-align: center;
  color: #ccc;
}

#main .title h3 {
  font-size: 36px;
}

#main .project {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

#main .project .item-wrapper {
  width: 24%;
  border: 1px solid #eee;
  padding: 20px 15px;
  margin: 10px 0;
}

#main .project .item-wrapper img {
  width: 100%;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
}

#main .project .item-wrapper img:hover {
  scale: 1.1;
}

#main .project .item-wrapper .desc {
  margin-top: 10px;
  text-align: center;
}

#footer {
  background: url(/assets/3.jpg) center/cover no-repeat;
  height: 400px;
}

@media all and (max-width: 768px) {
  #header {
    height: 60px;
    padding: 0 5vw;
  }

  #header .right {
    display: none;
  }
  #header .header-btn {
    display: block;
  }

  #header .right {
    line-height: 60px;
  }

  #header .left {
    width: 60px;
  }

  #slideshow-wrapper {
    height: 300px;
  }

  #main .title h3 {
    font-size: 24px;
  }

  #main .project .item-wrapper {
    width: 90% !important;
  }

  #footer {
    height: 250px !important;
  }
}

@media all and (max-width: 992px) {
  #main .project .item-wrapper {
    width: 32%;
  }
}
